package com.shop.service;

import com.shop.model.Course;
import com.shop.model.Order;
import com.shop.model.Student;

import java.util.List;

public interface IOrderService {

    //生成订单
    boolean addOrder(String studentId, String courseId, Double total_Price,String starus);

    //判断金额是否够付
    boolean paymoney(String studentId, Double total_Price);

    //更新余额
    boolean updateMoney(String studentId, Double total_money);

    //更新余额
    boolean updateMoney1(String studentId, Double money);

    //更新课程容量
    Boolean updateCourseCapacity(List<String> courseIds, int courseCapacity);

    //判断购买的课程是否充足
    List<String> coursecapacity(List<String> courseIds);

    //查询订单
    List<Order> queryOrder(String studentId);

    //查询是否已购买课程
    List<String> include_course(List<String> courseIds,String studentId);

    List<Course> getCourses(String studentId);

}
